import { connect } from 'react-redux'
import Search from '../../views/Search'

function mapStateToProps(state: any) {
    return {
        list: state.home.list
    }
}

function mapDispatchToProps(dispatch: (obj: any) => void) {
    return {
        'SORTREVERSE': () => {
            dispatch({ type: 'CHANGE_NAME' })
        }
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(Search)